package com.example.edu_order.client;

import com.example.commonutils.orderVo.UserOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author LUOXIN
 * @create 2021-09-16 19:56
 */
@Component
@FeignClient("service-ucenter")
public interface UcenterClient {

    //根据id获取用户信息
    @PostMapping("/edu_ucenter/user/getUserInfo/{id}")
    public UserOrder getUserInfoById(@PathVariable("id") String id);
}
